package com.tkjt.pms.utils;

public class EsExceptionUtils {

	public static final String formatException(Exception e) {
		StringBuilder sbuilder = new StringBuilder();
		StackTraceElement[] stackTraces = e.getStackTrace();
		for (int index = 0; index < stackTraces.length; index++) {
			sbuilder.append(stackTraces[index]).append("\r\n");
		}
		return sbuilder.toString();
	}

}
